//
//  HealBonus.m
//  iFly
//
//  Created by User-10 on 12/12/14.
//  Copyright (c) 2014 TeamDifferent. All rights reserved.
//

#import "HealBonus.h"
#import "CharacterNode.h"

@implementation HealBonus

+(instancetype)healWithPosition:(CGPoint)position {
    HealBonus* heal = [super bonusWithImageNamed:@"green-plus.png" andPosition:position];
    heal.points = 0;
    
    return heal;
}

-(void)wasTaken {
    CharacterNode* character = (CharacterNode*)[self.parent childNodeWithName:@"character"];
    [character wasHealed];
    [self removeFromParent];
}

@end
